/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package LiveReservations.control.action;

import LiveReservations.control.info.IInformation;
import LiveReservations.control.info.LoginInfo;
import LiveReservations.control.mocks.LoginMock;

/**
 *
 * @author tony
 */
public class LoginAction implements IAction {

    @Override
    public boolean execute(IInformation info) {
        LoginInfo logInfo = (LoginInfo) info;
        LoginMock logMock = new LoginMock();
        return logMock.login(logInfo);

    }

    @Override
    public boolean undo() {
        return false;
    }

}
